<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common.jsp" %>
<!DOCTYPE html>
<html>
<head>
<%@include file="/common_meta.jsp" %>
<%@include file="/amd_common_meta.jsp" %>
<title>AMD 掲示板</title>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">▼掲示板<a href="/" data-role="button" data-icon="home" data-iconpos="notext" class="ui-btn-right jqm-home" rel="external"></a></div>
<div data-role="content">
<c:if test="${!empty userData && userData.authentication}">
<form method="post" action="${f:url('tweet')}" data-transition="slideup">
<textarea name="content" cols="30" rows="5" class="${f:errorClass('content', 'err')}"></textarea>${f:h(errors.content)}
<input type="submit" value="投稿"/>
</form>
</c:if>
<c:if test="${empty userData || !userData.authentication}">
※googleアカウントでログインすると掲示板に投稿できるようになります。(<a href="${f:url('/logon')}" rel="external">ログイン</a>)
</c:if>

<hr/>
<c:forEach var="e" items="${tweetList}">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider"><fmt:formatDate value="${e.createdDate}" pattern="yyyy/MM/dd HH:mm:ss" /> ${f:h(e.nickName)}</li>
<li><pre>${f:h(e.content)}</pre></li>
</ul>
</c:forEach>


<br/>
<a href="http://www.amazon.co.jp/gp/aw/rd.html?ie=UTF8&dl=1&uid=NULLGWDOCOMO&lc=msn&a=B004U8CH1S&at=&url=%2Fgp%2Faw%2Fd.html"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&Format=_FMjpg_SL80_&ASIN=B004U8CH1S&MarketPlace=JP&ID=AsinImage&WS=1&tag=27olderistrad-22&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=&l=as2&o=9&a=B004U8CH1S" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</div>
<%@include file="/common_footer.jsp" %><br/>
</body>
</html>
